home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 194 < prev    next >
Text File  |  1996-08-06  |  906b  |  34 lines

  1. Path: nntp.teleport.com!tedder
  2. From: tedder@teleport.com (Ted Timmons)
  3. Newsgroups: comp.std.c
  4. Subject: Re: How to calculate the Holy Easter.
  5. Date: 26 Jan 1996 17:58:32 GMT
  6. Organization: Vancouver, WA
  7. Message-ID: <4eb4o8$sl3@maureen.teleport.com>
  8. References: <4e5kmh$2g9@leporello.cs.unibo.it>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Andrea Chierici (chierici@cs.unibo.it) wrote:
  13. : Hi, can anybody send me a C function to calculate the Easter of every year?
  14. : Thanks in advance,
  15.  
  16. Sounds like homework to me. Try this:
  17.  
  18. #include <christian.h>
  19. #include <catholic.h>
  20. #include <stdio.h>
  21.  
  22. main (){
  23.   int i;
  24.  
  25.   for (i=0;i<365;++i)
  26.     if (i == EASTER)
  27.       printf ("The %i day is easter.\n", i);
  28. }
  29.  
  30. --
  31. -=TED=-              |  Owner, HOMEBUILT-L mailing list
  32. tedder@teleport.com  |  "subscribe HOMEBUILT-L" to majordomo@teleport.com
  33.                                             
  34.